package com.hzj.service.impl;

import com.hzj.pojo.Money;
import com.hzj.mapper.MoneyMapper;
import com.hzj.service.MoneyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hzj
 * @since 2021-07-29
 */
@Service
public class MoneyServiceImpl extends ServiceImpl<MoneyMapper, Money> implements MoneyService {
    @Autowired
    MoneyMapper moneyMapper;

    @Override
    public int insertMoney(Money money) {
        return moneyMapper.insertMoney(money);
    }

    @Override
    @Transactional
    public int edit(Money money) {
        System.out.println("进入money");
        return moneyMapper.edit(money);
    }
}
